package cn.ulc.store.entity.order;
import cn.ulc.store.entity.goods.Goods;
import cn.ulc.store.entity.goods.GoodsSpec;
import lombok.Data;
import cn.ulc.store.entity.base.BaseModel;
import org.beetl.sql.core.annotatoin.Table;

import java.math.BigDecimal;

/*
* 
* gen by Jin 2019-05-29
*/
@Data
@Table(name="order_item")
public class OrderItem extends BaseModel {

	/*
	售价合计
	*/
	private BigDecimal amount;
	/*
	条形码
	*/
	private String barCode;
	private Long goodsSpecId;
	private Long goodsTypeId;
	/*
	是否是水 DEPOSIT - 水 有押金
	*/
	private String mode;
	private Long goodsId;
	private String goodsName;
	private String mainImage;
	/*
	购买数量
	*/
	private BigDecimal num;
	private Long orderId;
	/*
	销售单价
	*/
	private BigDecimal goodsPrice;
	/*
	利润
	*/
	private BigDecimal profit;
	private String remark;
	/*
	规格
	*/
	private String goodsSpecName;
	/*
	单位
	*/
	private String unit;

	private Long wxUserId;

	private Long memberId;

	//临时字段
	private String type;
	private Goods goods;
	private GoodsSpec goodsSpec;
}
